﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace MadeEasy.RealEstate.ModelMapping
{
    using Model;

    public class UserMapping : ClassMap<User>
    {
        public UserMapping()
        {
            Schema("merem");
            Table("users");
            Id(x => x.Key).GeneratedBy.Native();
            Map(x => x.Key, "us_key");
            this.Map(x => x.Name, "us_name").Not.Nullable();
            this.Map(x => x.Password, "us_password").Not.Nullable();
            this.Map(x => x.EMailAddress, "us_email").Not.Nullable();
        }
    }
}
